package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author changyu.gui
 * @version 1.0
 * @date 2020/5/14 17:21
 */
@Data
@TableName("product_update_rate")
@ApiModel(value = "产品方案利率表")
public class ProductUpdateRate extends BaseEntity<ProductUpdateRate> {

    @ApiModelProperty(value = "产品修改id ")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotBlank(message = "产品修改id ")
    private Long productUpdateId;

    @ApiModelProperty(value = "贷款期数起 ")
    private Integer loanPeriodStart;

    @ApiModelProperty(value = "贷款期数止")
    private Integer loanPeriodEnd;

    @ApiModelProperty(value = "客户利率")
    private BigDecimal custRate;

    @ApiModelProperty(value = "结算利率")
    private BigDecimal clearRate;

    @ApiModelProperty(value = "加点值")
    private BigDecimal addPointValue;
}
